\(\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx\) [537]
Optimal result
Integrand size = 35, antiderivative size = 200 \[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {a^{5/2} (20 A+19 B) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{4 d}+\frac {a^3 (4 A-9 B) \sin (c+d x)}{4 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (4 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d \sqrt {\cos (c+d x)}}+\frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}}
\]
[Out]
1/2*a*B*(a+a*sec(d*x+c))^(3/2)*sin(d*x+c)/d/cos(d*x+c)^(1/2)+1/4*a^(5/2)*(20*A+19*B)*arcsinh(a^(1/2)*tan(d*x+c
)/(a+a*sec(d*x+c))^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d+1/4*a^3*(4*A-9*B)*sin(d*x+c)/d/cos(d*x+c)^(1/2)/
(a+a*sec(d*x+c))^(1/2)+1/4*a^2*(4*A+7*B)*sin(d*x+c)*(a+a*sec(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)
Rubi [A] (verified)
Time = 0.73 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.00, number of
steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3034, 4103, 4100, 3886, 221}
\[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {a^{5/2} (20 A+19 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{4 d}+\frac {a^3 (4 A-9 B) \sin (c+d x)}{4 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (4 A+7 B) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{4 d \sqrt {\cos (c+d x)}}+\frac {a B \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{2 d \sqrt {\cos (c+d x)}}
\]
[In]
Int[Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])^(5/2)*(A + B*Sec[c + d*x]),x]
[Out]
(a^(5/2)*(20*A + 19*B)*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c
+ d*x]])/(4*d) + (a^3*(4*A - 9*B)*Sin[c + d*x])/(4*d*Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]) + (a^2*(4*A
+ 7*B)*Sqrt[a + a*Sec[c + d*x]]*Sin[c + d*x])/(4*d*Sqrt[Cos[c + d*x]]) + (a*B*(a + a*Sec[c + d*x])^(3/2)*Sin[c
+ d*x])/(2*d*Sqrt[Cos[c + d*x]])
Rule 221
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
x] && GtQ[a, 0] && PosQ[b]
Rule 3034
Int[((a_.) + csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.)*((g_.)*sin[(e_.
) + (f_.)*(x_)])^(p_.), x_Symbol] :> Dist[(g*Csc[e + f*x])^p*(g*Sin[e + f*x])^p, Int[(a + b*Csc[e + f*x])^m*((
c + d*Csc[e + f*x])^n/(g*Csc[e + f*x])^p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p}, x] && NeQ[b*c - a*d
, 0] && !IntegerQ[p] && !(IntegerQ[m] && IntegerQ[n])
Rule 3886
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*(a/(b
*f))*Sqrt[a*(d/b)], Subst[Int[1/Sqrt[1 + x^2/a], x], x, b*(Cot[e + f*x]/Sqrt[a + b*Csc[e + f*x]])], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[a*(d/b), 0]
Rule 4100
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(
B_.) + (A_)), x_Symbol] :> Simp[A*b^2*Cot[e + f*x]*((d*Csc[e + f*x])^n/(a*f*n*Sqrt[a + b*Csc[e + f*x]])), x] +
Dist[(A*b*(2*n + 1) + 2*a*B*n)/(2*a*d*n), Int[Sqrt[a + b*Csc[e + f*x]]*(d*Csc[e + f*x])^(n + 1), x], x] /; Fr
eeQ[{a, b, d, e, f, A, B}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && NeQ[A*b*(2*n + 1) + 2*a*B*n, 0] &&
LtQ[n, 0]
Rule 4103
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> Simp[(-b)*B*Cot[e + f*x]*(a + b*Csc[e + f*x])^(m - 1)*((d*Csc[e + f*x])^n/(f*(m +
n))), x] + Dist[1/(d*(m + n)), Int[(a + b*Csc[e + f*x])^(m - 1)*(d*Csc[e + f*x])^n*Simp[a*A*d*(m + n) + B*(b*d
*n) + (A*b*d*(m + n) + a*B*d*(2*m + n - 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, B, n}, x] &&
NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && GtQ[m, 1/2] && !LtQ[n, -1]
Rubi steps \begin{align*}
\text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x))}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}}+\frac {1}{2} \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{3/2} \left (\frac {1}{2} a (4 A-B)+\frac {1}{2} a (4 A+7 B) \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {a^2 (4 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d \sqrt {\cos (c+d x)}}+\frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}}+\frac {1}{2} \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (4 A-9 B)+\frac {1}{4} a^2 (20 A+19 B) \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {a^3 (4 A-9 B) \sin (c+d x)}{4 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (4 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d \sqrt {\cos (c+d x)}}+\frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}}+\frac {1}{8} \left (a^2 (20 A+19 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {a^3 (4 A-9 B) \sin (c+d x)}{4 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (4 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d \sqrt {\cos (c+d x)}}+\frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}}-\frac {\left (a^2 (20 A+19 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{4 d} \\ & = \frac {a^{5/2} (20 A+19 B) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{4 d}+\frac {a^3 (4 A-9 B) \sin (c+d x)}{4 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (4 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d \sqrt {\cos (c+d x)}}+\frac {a B (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{2 d \sqrt {\cos (c+d x)}} \\
\end{align*}
Mathematica [A] (verified)
Time = 1.01 (sec) , antiderivative size = 173, normalized size of antiderivative = 0.86
\[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {a^3 \sqrt {\cos (c+d x)} (A+B \sec (c+d x)) \left (20 A \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \sqrt {\sec (c+d x)}-19 B \arcsin \left (\sqrt {\sec (c+d x)}\right ) \sqrt {\sec (c+d x)}+\sqrt {1-\sec (c+d x)} \left (8 A+(4 A+11 B) \sec (c+d x)+2 B \sec ^2(c+d x)\right )\right ) \sin (c+d x)}{4 d (B+A \cos (c+d x)) \sqrt {1-\sec (c+d x)} \sqrt {a (1+\sec (c+d x))}}
\]
[In]
Integrate[Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])^(5/2)*(A + B*Sec[c + d*x]),x]
[Out]
(a^3*Sqrt[Cos[c + d*x]]*(A + B*Sec[c + d*x])*(20*A*ArcSin[Sqrt[1 - Sec[c + d*x]]]*Sqrt[Sec[c + d*x]] - 19*B*Ar
cSin[Sqrt[Sec[c + d*x]]]*Sqrt[Sec[c + d*x]] + Sqrt[1 - Sec[c + d*x]]*(8*A + (4*A + 11*B)*Sec[c + d*x] + 2*B*Se
c[c + d*x]^2))*Sin[c + d*x])/(4*d*(B + A*Cos[c + d*x])*Sqrt[1 - Sec[c + d*x]]*Sqrt[a*(1 + Sec[c + d*x])])
Maple [B] (verified)
Leaf count of result is larger than twice the leaf count of optimal. \(377\) vs. \(2(170)=340\).
Time = 8.16 (sec) , antiderivative size = 378, normalized size of antiderivative = 1.89
| | |
method | result | size |
| | |
default |
\(\frac {a^{2} \left (16 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+20 A \cos \left (d x +c \right )^{2} \arctan \left (\frac {\cos \left (d x +c \right )-\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )-20 A \cos \left (d x +c \right )^{2} \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+8 A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+19 B \cos \left (d x +c \right )^{2} \arctan \left (\frac {\cos \left (d x +c \right )-\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )-19 B \cos \left (d x +c \right )^{2} \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+22 B \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+4 B \sin \left (d x +c \right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\right ) \sqrt {a \left (1+\sec \left (d x +c \right )\right )}}{8 d \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )^{\frac {3}{2}}}\) |
\(378\) |
| | |
|
|
|
[In]
int((a+a*sec(d*x+c))^(5/2)*(A+B*sec(d*x+c))*cos(d*x+c)^(1/2),x,method=_RETURNVERBOSE)
[Out]
1/8*a^2/d*(16*A*cos(d*x+c)^2*sin(d*x+c)*(-1/(cos(d*x+c)+1))^(1/2)+20*A*cos(d*x+c)^2*arctan(1/2*(cos(d*x+c)-sin
(d*x+c)+1)/(cos(d*x+c)+1)/(-1/(cos(d*x+c)+1))^(1/2))-20*A*cos(d*x+c)^2*arctan(1/2*(cos(d*x+c)+sin(d*x+c)+1)/(c
os(d*x+c)+1)/(-1/(cos(d*x+c)+1))^(1/2))+8*A*cos(d*x+c)*sin(d*x+c)*(-1/(cos(d*x+c)+1))^(1/2)+19*B*cos(d*x+c)^2*
arctan(1/2*(cos(d*x+c)-sin(d*x+c)+1)/(cos(d*x+c)+1)/(-1/(cos(d*x+c)+1))^(1/2))-19*B*cos(d*x+c)^2*arctan(1/2*(c
os(d*x+c)+sin(d*x+c)+1)/(cos(d*x+c)+1)/(-1/(cos(d*x+c)+1))^(1/2))+22*B*cos(d*x+c)*sin(d*x+c)*(-1/(cos(d*x+c)+1
))^(1/2)+4*B*sin(d*x+c)*(-1/(cos(d*x+c)+1))^(1/2))*(a*(1+sec(d*x+c)))^(1/2)/(cos(d*x+c)+1)/(-1/(cos(d*x+c)+1))
^(1/2)/cos(d*x+c)^(3/2)
Fricas [A] (verification not implemented)
none
Time = 0.32 (sec) , antiderivative size = 453, normalized size of antiderivative = 2.26
\[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\left [\frac {4 \, {\left (8 \, A a^{2} \cos \left (d x + c\right )^{2} + {\left (4 \, A + 11 \, B\right )} a^{2} \cos \left (d x + c\right ) + 2 \, B a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left ({\left (20 \, A + 19 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + {\left (20 \, A + 19 \, B\right )} a^{2} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right )}{16 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}, \frac {2 \, {\left (8 \, A a^{2} \cos \left (d x + c\right )^{2} + {\left (4 \, A + 11 \, B\right )} a^{2} \cos \left (d x + c\right ) + 2 \, B a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left ({\left (20 \, A + 19 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + {\left (20 \, A + 19 \, B\right )} a^{2} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{8 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}\right ]
\]
[In]
integrate((a+a*sec(d*x+c))^(5/2)*(A+B*sec(d*x+c))*cos(d*x+c)^(1/2),x, algorithm="fricas")
[Out]
[1/16*(4*(8*A*a^2*cos(d*x + c)^2 + (4*A + 11*B)*a^2*cos(d*x + c) + 2*B*a^2)*sqrt((a*cos(d*x + c) + a)/cos(d*x
+ c))*sqrt(cos(d*x + c))*sin(d*x + c) + ((20*A + 19*B)*a^2*cos(d*x + c)^3 + (20*A + 19*B)*a^2*cos(d*x + c)^2)*
sqrt(a)*log((a*cos(d*x + c)^3 - 4*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*(cos(d*x + c) - 2)*sqrt(cos(
d*x + c))*sin(d*x + c) - 7*a*cos(d*x + c)^2 + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)))/(d*cos(d*x + c)^3 + d*c
os(d*x + c)^2), 1/8*(2*(8*A*a^2*cos(d*x + c)^2 + (4*A + 11*B)*a^2*cos(d*x + c) + 2*B*a^2)*sqrt((a*cos(d*x + c)
+ a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) + ((20*A + 19*B)*a^2*cos(d*x + c)^3 + (20*A + 19*B)*a^2*co
s(d*x + c)^2)*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x +
c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)))/(d*cos(d*x + c)^3 + d*cos(d*x + c)^2)]
Sympy [F(-1)]
Timed out. \[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\text {Timed out}
\]
[In]
integrate((a+a*sec(d*x+c))**(5/2)*(A+B*sec(d*x+c))*cos(d*x+c)**(1/2),x)
[Out]
Timed out
Maxima [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 14322 vs. \(2 (170) = 340\).
Time = 3.38 (sec) , antiderivative size = 14322, normalized size of antiderivative = 71.61
\[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\text {Too large to display}
\]
[In]
integrate((a+a*sec(d*x+c))^(5/2)*(A+B*sec(d*x+c))*cos(d*x+c)^(1/2),x, algorithm="maxima")
[Out]
1/16*(4*(8*a^2*cos(1/2*d*x + 1/2*c)^4*sin(1/2*d*x + 1/2*c) + 16*a^2*cos(1/2*d*x + 1/2*c)^2*sin(1/2*d*x + 1/2*c
)^3 + 8*a^2*sin(1/2*d*x + 1/2*c)^5 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^
2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*
a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1
/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)^4 + 10*(sqrt(2)*a^2*log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
- sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sq
rt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*
sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1
/2*c)^2*sin(1/2*d*x + 1/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d
*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x
+ 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1/2*c)^4 + (8*a^2*sin(1/2*d*x + 1/2*c)^3 + (5*s
qrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2
)*sin(1/2*d*x + 1/2*c) + 2) - 5*sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2
)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 5*sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*
sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 5*sqrt(2)*a^2*
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d
*x + 1/2*c) + 2) + 8*a^2*sin(1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2
*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt
(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*s
in(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos
(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x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*sqrt
(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*
sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1
/2*c)^2 + 2*(8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2
*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*l
og(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*
x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x
+ 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/
2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c))*cos(3/2*d
*x + 3/2*c) - 2*(8*a^2*sin(1/2*d*x + 1/2*c)^2 - 4*a^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*co
s(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2
*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c
) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
- 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3/
2*c) + 8*(a^2*cos(1/2*d*x + 1/2*c)^2 - a^2)*sin(1/2*d*x + 1/2*c))*cos(5/2*d*x + 5/2*c)^2 + (8*a^2*sin(1/2*d*x
+ 1/2*c)^3 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*
c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - s
qrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2
)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x +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2)*sin(1/2*d*x + 1/2*c) + 2) - 5*sqrt(2)*a^2*log(2
*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2) + 8*a^2*sin(1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a
^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*
d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)^2 + (5
*sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt
(2)*sin(1/2*d*x + 1/2*c) + 2) - 5*sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 5*sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 5*sqrt(2)*a^
2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2
*d*x + 1/2*c) + 2) + 8*a^2*sin(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sq
rt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1/2*c)
^2 + 2*(8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(
1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*
cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1
/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2
*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^
2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c))*cos(3/2*d*x +
3/2*c) - 2*(8*a^2*sin(1/2*d*x + 1/2*c)^2 - 4*a^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2
*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) +
2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2
*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*s
qrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3/2*c)
+ 8*(a^2*cos(1/2*d*x + 1/2*c)^2 - a^2)*sin(1/2*d*x + 1/2*c))*sin(5/2*d*x + 5/2*c)^2 + (8*a^2*sin(1/2*d*x + 1/2
*c)^3 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c
) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
+ 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c
)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2
)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin
(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d
*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2
) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*s
qrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(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/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) +
2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*
sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c)^2
+ (8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1
/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2
*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c
)^2 + (8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*c
os(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/
2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*
c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
- 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3
/2*c)^2 + 2*(8*a^2*cos(1/2*d*x + 1/2*c)^2*sin(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2
*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*
x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)^2)*cos(3
/2*d*x + 3/2*c) - 2*(8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c)^2 - 4*a^2*cos(1/2*d*x + 1/2*c) + 5*(sqrt(
2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(
1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*
d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(
1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c
) + 2))*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3/2*c) + 8*(a^2*cos(1/2*d*x + 1/2*c)^3 - a^2*
cos(1/2*d*x + 1/2*c))*sin(1/2*d*x + 1/2*c))*cos(5/2*d*x + 5/2*c) + 2*(8*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x +
1/2*c)^3 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1
/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c
)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sq
rt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)^3 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1
/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2
*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c)
^2 + 8*(a^2*cos(1/2*d*x + 1/2*c)^3 + a^2*cos(1/2*d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c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) -
sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt
(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*d*x + 1/2*c)^3 + (8*a^2*sin(1/2*d*x + 1/2*c)^2 + 4*a^2 + 5*(sqrt(2)*a^2
*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*
x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
)*sin(1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c)^2 + (8*a^2*sin(1/2*d*x + 1/2*c)^2 + 4*a^2 + 5*(sqrt(2)*a^2*log(2*
cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1
/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2
*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^
2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2
*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1
/2*d*x + 1/2*c))*sin(3/2*d*x + 3/2*c)^2 + 4*(2*a^2*cos(1/2*d*x + 1/2*c)^2 - a^2)*sin(1/2*d*x + 1/2*c)^2 + 2*(8
*a^2*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c)^2 + 4*a^2*cos(1/2*d*x + 1/2*c) + 5*(sqrt(2)*a^2*log(2*cos(1/2*d
*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2
) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*s
qrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqr
t(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2
*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(1/2*d*x +
1/2*c)*sin(1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c) - 2*(8*a^2*sin(1/2*d*x + 1/2*c)^3 + 5*(sqrt(2)*a^2*log(2*cos
(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*
c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c)
- 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 -
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(1/2*
d*x + 1/2*c)^2)*sin(3/2*d*x + 3/2*c))*sin(5/2*d*x + 5/2*c) - 2*(8*a^2*sin(1/2*d*x + 1/2*c)^4 - 4*a^2*cos(1/2*d
*x + 1/2*c)^2 + 5*(sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x
+ 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - sqrt(2)*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1
/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + sqrt(2)*a^2*log(2*cos(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2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c)^2)*cos(3/2*d*x + 3/2*c) + 2*(sqrt(2)*cos(3/2*d*x + 3
/2*c)^2*sin(1/2*d*x + 1/2*c) + 2*sqrt(2)*cos(3/2*d*x + 3/2*c)*cos(1/2*d*x + 1/2*c)*sin(1/2*d*x + 1/2*c) + sqrt
(2)*cos(1/2*d*x + 1/2*c)^2*sin(1/2*d*x + 1/2*c) + sqrt(2)*sin(3/2*d*x + 3/2*c)^2*sin(1/2*d*x + 1/2*c) - 2*sqrt
(2)*sin(3/2*d*x + 3/2*c)*sin(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d*x + 1/2*c)^3)*sin(5/2*d*x + 5/2*c) - 2*(sq
rt(2)*cos(1/2*d*x + 1/2*c)^2*sin(1/2*d*x + 1/2*c) + sqrt(2)*sin(1/2*d*x + 1/2*c)^3)*sin(3/2*d*x + 3/2*c)) - (8
8*sqrt(2)*a^2*cos(7/2*d*x + 7/2*c)*sin(2*d*x + 2*c) - 56*sqrt(2)*a^2*cos(5/2*d*x + 5/2*c)*sin(2*d*x + 2*c) - 2
8*sqrt(2)*a^2*sin(3/2*d*x + 3/2*c) + 44*sqrt(2)*a^2*sin(1/2*d*x + 1/2*c) - 19*(a^2*log(2*cos(1/2*d*x + 1/2*c)^
2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(
2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*
cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(4*d*x + 4*c)^2 - 76*(a^2*log(2*cos(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^
2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2
*d*x + 1/2*c) + 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2
*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(2*d*x + 2*c)^2 - 19*a^2*log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
+ 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) - 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/
2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1
/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 19*(a^2*log(2*cos(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^
2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2
*d*x + 1/2*c) + 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2
*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(4*d*x + 4*c)^2 - 76*(a^2*log(2*cos(1/2*d
*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2
) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*s
in(1/2*d*x + 1/2*c) + 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x
+ 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
- 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(2*d*x + 2*c)^2 - 2*(22*sqrt(2)*a^2
*sin(7/2*d*x + 7/2*c) - 14*sqrt(2)*a^2*sin(5/2*d*x + 5/2*c) + 14*sqrt(2)*a^2*sin(3/2*d*x + 3/2*c) - 22*sqrt(2)
*a^2*sin(1/2*d*x + 1/2*c) + 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/
2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 19*a^2*log(2*cos(1/2*d*x + 1/2
*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 19*a
^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2) + 38*(a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x
+ 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*s
in(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1
/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2))*cos(2*d*x + 2*c))*cos(4*d*x + 4*c) - 4*(14*sqrt(2)*a^2*sin(3/2*d*x + 3/2*c) - 22*sqrt(2)*a^2*sin(1/2*d*
x + 1/2*c) + 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 19*a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 19*a^2*log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2))*cos(2*d*x + 2*c) + 4*(11*sqrt(2)*a^2*cos(7/2*d*x + 7/2*c) - 7*sqrt(2)*a^2*cos(5/2*d*x + 5/2*c) + 7*sqrt(
2)*a^2*cos(3/2*d*x + 3/2*c) - 11*sqrt(2)*a^2*cos(1/2*d*x + 1/2*c) - 19*(a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*s
in(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1
/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) + a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(
2)*sin(1/2*d*x + 1/2*c) + 2) - a^2*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(2*d*x + 2*c))*sin(4*d*x + 4*c) - 44*(2*sqrt(2)*a^2*co
s(2*d*x + 2*c) + sqrt(2)*a^2)*sin(7/2*d*x + 7/2*c) + 28*(2*sqrt(2)*a^2*cos(2*d*x + 2*c) + sqrt(2)*a^2)*sin(5/2
*d*x + 5/2*c) + 8*(7*sqrt(2)*a^2*cos(3/2*d*x + 3/2*c) - 11*sqrt(2)*a^2*cos(1/2*d*x + 1/2*c))*sin(2*d*x + 2*c))
*B*sqrt(a)/(2*(2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + cos(4*d*x + 4*c)^2 + 4*cos(2*d*x + 2*c)^2 + sin(4*d*
x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 4*sin(2*d*x + 2*c)^2 + 4*cos(2*d*x + 2*c) + 1))/d
Giac [F]
\[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \sqrt {\cos \left (d x + c\right )} \,d x }
\]
[In]
integrate((a+a*sec(d*x+c))^(5/2)*(A+B*sec(d*x+c))*cos(d*x+c)^(1/2),x, algorithm="giac")
[Out]
sage0*x
Mupad [F(-1)]
Timed out. \[
\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\int \sqrt {\cos \left (c+d\,x\right )}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x
\]
[In]
int(cos(c + d*x)^(1/2)*(A + B/cos(c + d*x))*(a + a/cos(c + d*x))^(5/2),x)
[Out]
int(cos(c + d*x)^(1/2)*(A + B/cos(c + d*x))*(a + a/cos(c + d*x))^(5/2), x)